package com.EpidemicPrevention.service;

import com.EpidemicPrevention.pojo.Admin;
import com.alibaba.fastjson.JSONObject;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface AdminService {
    JSONObject login(Admin admin, HttpSession session);

    //存储个人信息
    JSONObject saveAdminInfo(Admin admin);

    //修改密码验证
    JSONObject verifyAdminPwd(Admin admin);

    //修改密码
    JSONObject updateAdminPwd(Admin admin, String pwd1, String pwd2);

    //添加用户
    JSONObject addAdmin(Admin admin);

    //删除用户
    JSONObject deleteAdmin(int id);

    //查看用户
    List<Admin> queryAdmin(int page, int limit);

}
